import { Controller } from 'egg'


import { R } from '../../common/domain/R'

export default class SysMenuController extends Controller {
    public async list() {
        const { ctx } = this
        ctx.logger.info('sys menu list')
        const data = await ctx.service.sys.sysMenuService.list()
        const r = R.ok(data)
        ctx.response.toJSON()
        ctx.body = r
    }
}